package com.ics.atable.chat.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * embedding向量表
 * @TableName embeddings
 */
@TableName(value ="embeddings")
@Data
public class EmbeddingsPersist implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "content")
    private String content;

    /**
     * 向量类型：item-指标，address-地址，other-其他
     */
    @TableField(value = "type")
    private String type;

    /**
     * 
     */
    @TableField(value = "created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createdTime;

    /**
     * 
     */
    @TableField(value = "updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date updatedTime;

    /**
     * 
     */
    @TableField(value = "vector")
    private float[] vector;

    /**
     * 向量维度
     */
    @TableField(value = "dimensions")
    private Integer dimensions;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}